<template>
  <el-config-provider :locale="zhCn">
    <router-view v-slot="{ Component }">
      <component :is="Component" />
    </router-view>
  </el-config-provider>
</template>
<script setup>
import { onMounted } from "vue";
import { changeTheme } from "@/common/utils/mix";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
onMounted(() => {
  changeTheme();
});
</script>
<style lang="scss">
@use "./assets/main";
#nprogress .bar {
  background: var(--theme-color) !important; //自定义颜色
  // background: red !important; //自定义颜色
}
</style>
